package com.example.lib_patrol

import com.example.lib_common.mvi.BaseRepository
import com.example.lib_common.mvi.ResponseEntity
import com.example.network_sdk.HttpType
import com.example.network_sdk.NetWorkFactory
import kotlinx.coroutines.flow.Flow

class PatrolRepository : BaseRepository() {
    fun requestAllRepair() : Flow<ResponseEntity<List<PatrolEntity>>> {
        return NetWorkFactory.factory(HttpType.TOKEN)!!
            .create(ApiService::class.java)
            .requestAllPatrol()
    }
}